package cn.sofwin.day0116.homework;

import java.util.Scanner;

public class Homework {
    public static void main(String[] args) {
        String[] ages = new String[]{"儿童", "少年", "青少年", "青年", "壮年", "中年", "中老年", "老年", "老老年", "老老老年"};
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入年龄（0-99）：");
        int age = sc.nextInt();
        if(age < 0 || age > 99){
            System.out.println("请检查输入是否有误");
        }
        System.out.println(ages[age / 10]);
    }
}
